package com.moji.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class TreeDto {

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private String id;

    /**
     * 编码
     */
    @ApiModelProperty(value = "编码")
    private String code;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 父编码
     */
    @ApiModelProperty(value = "父编码")
    private String parentCode;

    /**
     * 父名称
     */
    @ApiModelProperty(value = "父名称")
    private String parentName;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private String sort;

    /**
     * 层级
     */
    @ApiModelProperty(value = "层级")
    private String levels;

    /**
     * 是否菜单
     */
    @ApiModelProperty(value = "是否菜单")
    private String menuFlag;

    /**
     * url
     */
    @ApiModelProperty(value = "url")
    private String url;
    /**
     * 子集
     */
    @ApiModelProperty(value = "子集")
    private List<TreeDto> treeList;

    public TreeDto(String id, String code, String name, String parentCode, String parentName, String sort, String levels, String menuFlag, String url) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.parentCode = parentCode;
        this.parentName = parentName;
        this.sort = sort;
        this.levels = levels;
        this.menuFlag = menuFlag;
        this.url = url;
    }

}
